﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Patyk.Data
{
    public class BaseObstacle
    {
        
    }

    public class Map
    {
        public float ScreenScalingFactorX { get; set; }
        public float ScreenScalingFactorY { get; set; }
        public byte[,] MapTexture { get; set; }
        public List<BaseObstacle> Obstacles { get; set; }

        public int MapWidth { get { return MapTexture.GetLength(0); } }
        public int MapHeight { get { return MapTexture.GetLength(1); } }

        public Map()
        {
            Debug();
        }

        public void Debug()
        {
            ScreenScalingFactorX = 5.0f;
            ScreenScalingFactorY = 2.0f;

            MapTexture = new byte[1600, 900];
            Random r = new Random();
            for (int i = 0; i < MapTexture.GetLength(0); ++i)
            {
                for (int j = 0; j < MapTexture.GetLength(1); ++j)
                {
                    //MapTexture[i, j] = (byte)r.Next(0,2);//random
                    if (i < MapTexture.GetLength(0) / 2)
                        MapTexture[i, j] = 0;
                    else
                        MapTexture[i, j] = 1;
                }
            }
            Obstacles = new List<BaseObstacle>();
        }
    }


}
